#pragma once
#include "afxwin.h"
#include "afxcmn.h"
#include "SwordBibleFonts.h"
#include "SwordbibleDoc.h"
#include "ColorMgr.h"
#include "MyToolBar.h"
#include "grid\GridCtrl.h"



class CParallelBible : public CPropertyPage
{
	DECLARE_DYNAMIC(CParallelBible)

public:
	virtual BOOL OnInitDialog();
	CParallelBible();
	virtual ~CParallelBible();

// Dialog Data
	enum { IDD = IDD_PARALLELPAGE };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	CMyToolBar m_wndFormatBar;

	DECLARE_MESSAGE_MAP()
public:
	BOOL BibleActive[nBibles];
	static CSwordBibleDoc* pDoc;           // pointer to the document object
	

	CString chapText;
	CGridCtrl m_grid;
    
	void FitColumns(int numCols);

	virtual BOOL OnSetActive();
	virtual void OnReset();
	afx_msg void OnSelectAll();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnPrint();
	afx_msg void OnPrevious();
	afx_msg void OnNext();
	afx_msg void OnShowVersions();
	afx_msg void OnCopy();
	BOOL OnToolTipNotify(UINT id, NMHDR *pNMHDR,   LRESULT *pResult);


	void showText();
	void OnChangeVersions();

private:
	int text_width;
	int text_height;

};
